package com.jp.knowledge.activity;

import android.support.v4.widget.DrawerLayout;
import android.view.View;

import com.jp.knowledge.fragment.JobKnowledgeDetailFragment;

/**
 * Created by 528787067@qq.com on 2017/7/13.
 */

public class JobKnowledgeDetailActivity extends ProductEvaluationActivity {

	protected String id;

	@Override
	protected void init() {
		id = getIntent().getStringExtra("id");
		super.init();
	}

	protected void initFragment(){
		fragments.add(JobKnowledgeDetailFragment.newInstance(1, id));
		fragments.add(JobKnowledgeDetailFragment.newInstance(2, id));
//		fragments.add(JobKnowledgeDetailFragment.newInstance(3, id));
	}


	protected void initTabLayout(){
		tabView.setTabItems("推荐", "最热"/*, "精选"*/);
		tabView.setupWithViewPager(viewPager);
	}

	@Override
	protected void initRightMenu() {
		sortBtn.setVisibility(View.GONE);
		drawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);
	}

	@Override
	protected void gotoSearch() {
		SearchSimpleActivity.gotoSearch(mContext, id, 13, 2, 2);
	}
}
